pull: Add support for resuming downloads via range requests
authorJeremy Whiting <jpwhiting@kde.org>
Mon, 26 Aug 2013 20:59:55 +0000 (14:59 -0600)
committerColin Walters <walters@verbum.org>
Wed, 28 Aug 2013 18:35:54 +0000 (14:35 -0400)
commit499df2a90b4b9c6277615138541d1c35a738d869
tree1857da331a9cdc7634ca344a3057a224bea6d74e
parent902848cd71d699ad7e3532247e33155e4cb0ff50
pull: Add support for resuming downloads via range requests

Use a consistent temporary filename to download uri's.
Check for downloaded files before fetching from uri.
Download to hash.part file, then copy/move to hash.done when complete.
Add argument support to setup_fake_remote_repo1 function.
Add test for pull resume.
To implement this, pass --force-range-requests into the trivial-httpd,
which will only serve half of the objects to clients at a time.

https://bugzilla.gnome.org/show_bug.cgi?id=706344
Makefile-tests.am
src/libostree/ostree-fetcher.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-repo-pull.c
tests/libtest.sh
tests/test-pull-resume.sh [new file with mode: 0755]